package com.tianji.api.client.remark;


import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(name = "remark-service", path = "likes", fallbackFactory = RemarkClientFallback.class)
public interface RemarkClient {

    /**
     * 根据业务id集合查询点赞状态
     * @param bizIds
     * @return
     */
    @GetMapping("list")
    public Set<Long> listLikedStatus(@RequestParam("bizIds") Iterable<Long> bizIds);
}
